
function  html_img(image, id, opts) {
  return "<IMG SRC='"+image.src+"' "+
    (opts|| "")+
    (image.height ? (" HEIGHT="+image.height+" "):"")+
    (image.width ? (" WIDTH="+image.width+" "):"")+
    (image.alt ? (" ALT='"+image.alt+"' "):"")+
    (id ? (" ID='_img_"+id+"' "):" ")+">";
}

function html_img_replace(id,image) {
  var img=document.getElementById("_img_"+id);
  if(img) {
    img.src=image.src;
    img.alt=image.alt;
  } 
}
   
function html_img_id(id) {
  return "_img_"+id;
}

function html_img_hide(id) {
  document.getElementById(html_img_id(id)).className="HIDEME";
}
function html_img_show(id) {
  document.getElementById(html_img_id(id)).className="";
}

var expand_img = new Image();
expand_img.src="gifs/expand.gif";

var section_img= new Image();
section_img.src='gifs/VCRForward.gif';


var tffound_img= new Image(12,12);
tffound_img.src='gifs/answer_good.gif';
tffound_img.alt='Found';

var tfhalffound_img= new Image(12,12);
tfhalffound_img.src='gifs/Caution.gif';
tfhalffound_img.alt='Needs second document';

var tfnotfound_img= new Image(12,12);
tfnotfound_img.src='gifs/answer_bad.gif';
tfnotfound_img.alt='Not Found';

var tfeq_img= new Image(12,12);
tfeq_img.src='gifs/blank-20.gif';
tfeq_img.alt='Equivalent claim';

var fullview_img=new Image();
fullview_img.src='gifs/Up.gif';
fullview_img.alt='Compact View';

var compactview_img= new Image();
compactview_img.src='gifs/Down.gif';
compactview_img.alt='Expanded View';

var minicompactview_img= new Image();
minicompactview_img.src='gifs/Down.gif';
minicompactview_img.alt='Expanded View';
minicompactview_img.height='14';
minicompactview_img.width="16";

var minifullview_img= new Image();
minifullview_img.src='gifs/Up.gif';
minifullview_img.alt='Expanded View';
minifullview_img.height='14';
minifullview_img.width="16";


var jointf_img= new Image();
jointf_img.src='gifs/Frame.gif';
jointf_img.alt='Join Upper Feature'; // class='bjs'>

var splittf_img=new Image();
splittf_img.src='gifs/SplitHorizontal.gif';
splittf_img.alt='Split Feature at Cursor'; // class='bjs'>

var striphead_img = new Image();
striphead_img.src="gifs/Cut.gif";
striphead_img.alt="Strip claim header";

var addrmks_img= new Image(20,20);
addrmks_img.src='gifs/DocumentIn.gif';
addrmks_img.alt='Add comments';


var hidermks_img= new Image(20,20);
hidermks_img.src='gifs/DocumentOut.gif';
hidermks_img.alt='Hide comments';

var refresh_img= new Image(20,20);
refresh_img.src='gifs/refresh.jpg';
refresh_img.alt='Refresh';

var editrmks_img= new Image(20,20);
//editrmks_img.src='gifs/DocumentDraw.gif';
editrmks_img.src='gifs/attachment.gif';
editrmks_img.alt='Edit comments';

 
var notnew_img=  new Image(12,12);
notnew_img.src='gifs/answer_good.gif';
notnew_img.alt='Not New';


var notinv_img=  new Image(12,12);
notinv_img.src='gifs/answer_notsogood.gif';
notinv_img.alt='Not Inventive';


var newinv_img=  new Image(12,12);
newinv_img.src='gifs/bulb.gif';
newinv_img.alt='New and Inventive';


var notsearched_img=  new Image(12,12);
notsearched_img.src='gifs/answer_unknown.gif';
notsearched_img.alt='Not Searched';


var openfile_img=  new Image();
openfile_img.src='gifs/Open.gif';
//openfile_img.height=12;
//openfile_img.width=12;
openfile_img.alt='Open file';


var lock_img = new Image();
lock_img.src='gifs/lock.gif';
lock_img.alt='locked';

var findstr_img = new Image();
findstr_img.src='gifs/DocumentMag.gif';
findstr_img.alt=search_help();


var find_img = new Image();
find_img.src='gifs/Binocular.gif';
find_img.alt=search_help();


var chcd_img = new Image();
chcd_img.src='gifs/Folder.gif';
chcd_img.alt='Change Directory';

var save_img = new Image();
save_img.src='gifs/Folder.gif';
save_img.alt='Save Changes';


var info_img = new Image();
info_img.src='gifs/Inform.gif';

var down_img = new Image();
down_img.src='gifs/Down.gif';

var copy_img = new Image();
copy_img.src='gifs/Copy.gif';

var trash_img = new Image();
trash_img.src='gifs/trash.gif';
trash_img.alt="DELETE";

var edit_img = new Image();
edit_img.src='gifs/edit.gif';
edit_img.alt="EDIT";

var minitrash_img = new Image();
minitrash_img.src='gifs/trash.gif';
minitrash_img.alt="DELETE";
minitrash_img.height='14';
minitrash_img.width="16";

var miniedit_img = new Image();
miniedit_img.src='gifs/edit.gif';
miniedit_img.alt="EDIT";
miniedit_img.height="14";
miniedit_img.width="16";

var attach_img = new Image();
attach_img.src='gifs/attachment.gif';

var ok_img=  new Image();
ok_img.src='gifs/answer_good.gif';
ok_img.height=18;
ok_img.width=18;
ok_img.alt="OK";

var cancel_img=  new Image();
cancel_img.src='gifs/answer_bad.gif';
cancel_img.height=18;
cancel_img.width=18;
cancel_img.alt="CANCEL";


var open_img=  new Image();
open_img.src='gifs/OpenDoc.gif';
//open_img.height=24;
//open_img.width=24;
open_img.alt="OPEN";

var add_img=  new Image();
add_img.src='gifs/Plus.gif';
//open_img.height=24;
//open_img.width=24;
add_img.alt="ADD";


var smalladd_img=  new Image();
smalladd_img.src='gifs/Plus.gif';
smalladd_img.height=12;
smalladd_img.width=12;
smalladd_img.alt="ADD";

var smallmin_img=  new Image();
smallmin_img.src='gifs/Minus.gif';
smallmin_img.height=12;
smallmin_img.width=12;
smallmin_img.alt="Remove";

var rotate_img=  new Image();
rotate_img.src='gifs/RotCWLeft.gif';
//open_img.height=24;
//open_img.width=24;
//rotate_img.alt="ADD";

var warning_img=  new Image();
warning_img.src='gifs/caution.gif';
warning_img.height=20;
warning_img.width =20;

var text_img= new Image();
text_img.src='gifs/Document.gif';
text_img.alt='View Text';

var diff_img= new Image();
diff_img.src='gifs/TileCascade.gif';
diff_img.alt='View Differences';


var parse_img= new Image();
parse_img.src='gifs/redo.png';
parse_img.alt='Re parse';


var tree_img= new Image();
tree_img.src='gifs/FlowGraph.gif';
tree_img.alt='View Tree';

var back_img=  new Image();
back_img.src='gifs/VCRBack.gif';
back_img.height=20;
back_img.width =20;

var column_img= new Image();
column_img.src='gifs/Column.gif';
column_img.alt='Features Table';


var magnp_img= new Image();
magnp_img.src='gifs/MagnifyPLus.gif';
magnp_img.alt='View Tree';

var import_img=new Image();
import_img.src='gifs/DataExtract.gif';
import_img.alt="Import from file";

var export_img=new Image();
export_img.src='gifs/DataStore.gif';
export_img.alt="Export to file";

var img_num1_img= new Image();
img_num1_img.src='gifs/Circle_1.gif';

var img_num2_img= new Image();
img_num2_img.src='gifs/Circle_2.gif';

var img_num3_img= new Image();
img_num3_img.src='gifs/Circle_3.gif';

var img_num4_img= new Image();
img_num4_img.src='gifs/Circle_4.gif';

var img_num5_img= new Image();
img_num5_img.src='gifs/Circle_5.gif';

var img_num6_img= new Image();
img_num6_img.src='gifs/Circle_6.gif';


var img_end= new Image();
img_end.src='gifs/Stop.gif';

var img_dinonews= new Image();
img_dinonews.src='gifs/Eyeball.gif';
img_dinonews.alt='Check Dino for news';

var img_scheduleop= new Image();
img_scheduleop.src='gifs/Clock.gif';
img_scheduleop.alt='Schedule OP';

var img_addaction= new Image();
img_addaction.src='gifs/New.gif';
img_addaction.alt="Add action";

var img_chain= new Image(18,18);
img_chain.src='gifs/FingerDown.gif';
img_chain.alt="Chain";

var fulldiff_img= new Image();
fulldiff_img.src='gifs/Magnify.gif';
fulldiff_img.alt='Show features';


var compactdiff_img= new Image();
compactdiff_img.src='gifs/MagnifyMinus.gif';
compactdiff_img.alt='Hide Features';
